public class HomeWork11_02{
    public static void main(String[] args){
        int[] arr = new int[10];
        for(int i = 0; i < arr.length; i++){
            arr[i] = 2;
        }
        
        int ans = IntArrAns.intArrAns(arr);
        System.out.println(ans);
    }
}

class IntArrAns{
    public static int intArrAns(int[] arr){
        int ans = 0;
        for(int item : arr){
            ans += item;
        }
        return ans;
    }
}